package ru.amse.tsyganov.jumleditor.graphicaleditor;

import ru.amse.tsyganov.jumleditor.model.JoinDecision;
import ru.amse.tsyganov.jumleditor.model.State;
import ru.amse.tsyganov.jumleditor.view.JoinDecisionView;
import ru.amse.tsyganov.jumleditor.view.StateView;

/*package*/ class AddJoinDecisionMode extends AddStateMode {

	public AddJoinDecisionMode(GraphicalEditor graphicalEditor) {
		super(graphicalEditor);
	}

	@Override
	public StateView<? extends State> createNewState() {
		JoinDecision forkDecision = new JoinDecision();
		JoinDecisionView<? extends JoinDecision> newDecision = 
			new JoinDecisionView<JoinDecision>(forkDecision, getEditor().getActivityGraphView());
		
		return newDecision;
	}

}
